<!DOCTYPE html>
<html>
	<head>	
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/>
		<title>捷豹英仕挑战赛</title>
		 <link rel="stylesheet" href="__PUBLIC__/Home/css/font.css" />
		<link rel="stylesheet" charset="utf-8" type="text/css" href="__PUBLIC__/Home/css/sweep.css">
		<script type="text/javascript" charset="utf-8" src="__PUBLIC__/Home/js/jquery.min.js" ></script>
		<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
		<script src="http://api.weixinzjit.com/api/www/js/wx_jsapi_v_1.0.js"></script>
		<script>
		
		 var ApiList = [
		        'checkJsApi',
		        'openLocation',
		        'getLocation',
		        'scanQRCode',
		      ];

	

	var CallbackList = function() {
		$("#play1").click(function(){ 
		wx.scanQRCode({
    	needResult: 1, // 默认为0，扫描结果由微信处理，1则直接返回扫描结果，
   		scanType: ["qrCode","barCode"], // 可以指定扫二维码还是一维码，默认二者都有
    	success: function (res) {
   		var result = res.resultStr; // 当needResult 为 1 时，扫码返回的结果	
   		
   				var url="{:U('Sweep/sign')}?uid="+result;
   				
					$.get(url,function(data){
						alert(data.m);
					});
				}
				});
			});
			
	
			
		$("#play3").click(function(){ 
		wx.scanQRCode({
    	needResult: 1, // 默认为0，扫描结果由微信处理，1则直接返回扫描结果，
   		scanType: ["qrCode","barCode"], // 可以指定扫二维码还是一维码，默认二者都有
    	success: function (res) {
   		var result = res.resultStr; // 当needResult 为 1 时，扫码返回的结果
   		window.location.href="{:U('Sweep/form')}?type=3&&uid="+result;
				}
				});
			});	
			
		$("#play4").click(function(){ 
		wx.scanQRCode({
    	needResult: 1, // 默认为0，扫描结果由微信处理，1则直接返回扫描结果，
   		scanType: ["qrCode","barCode"], // 可以指定扫二维码还是一维码，默认二者都有
    	success: function (res) {
   		var result = res.resultStr; // 当needResult 为 1 时，扫码返回的结果
   		window.location.href="{:U('Sweep/form')}?type=4&&uid="+result;
				}
				});
			});	
			
		
}

                   
		
			var ua = navigator.userAgent; 		
			if (ua.indexOf("Android") > -1 ){
			var heigt=document.documentElement.clientHeight;
			var widte=document.documentElement.clientWidth;			
			}
			if (ua.indexOf("Mac") > -1 ){
				var heigt=window.screen.availHeight;
				var widte=window.screen.availWidth;			
			}	
			
			if (ua.indexOf("iPad") > -1 ){
				var heigt=window.screen.height;
				var widte=window.screen.width;		 			
			}	
			if (ua.indexOf("iPhone") > -1  ){
			var heigt=document.documentElement.clientHeight;
			var widte=document.documentElement.clientWidth;						
			}
					
			$(document).ready(function(e) {
					
				$(".bg").css({"height":heigt,"width":widte});		
				$(".content").css({"width":widte});			
				$(".play").css({"height":widte*0.30,"width":widte*0.30});
				$("#play2").click(function(){
						window.location.href="{:U('Sweep/ewm')}";
				});
			});
			
			
				ZJWX(ApiList, CallbackList, false);
		</script>
		
	</head>
	<body>
		<audio  autoplay="autoplay"  id="audio"></audio>
		
		<div class="bg"></div>	
		<div class="content">
			<img class="logo" src="__PUBLIC__/Home/image/activity/logo.png"/>
			<p class="siez" style="width: 30%; line-height: 40px;">捷豹英仕挑战赛 后台系统</p>
			<div class="play" id="play1"><div class="bng"></div><img  src="__PUBLIC__/Home/image/activity/bn1.png"/><div class="siez3">签到</div></div>
			<div class="play" id="play2"><div class="bng"></div><img  src="__PUBLIC__/Home/image/activity/bn1.png"/><div class="siez3">注册</div></div>
			<div class="play" id="play3"><div class="bng"></div><img  src="__PUBLIC__/Home/image/activity/bn1.png"/><div class="siez4">驭享<br/>非凡座驾</div></div>
			
			
		
		</div>
		
	</body>
</html>
